<?php
namespace app\zw_admin\controller;
use think\Controller;
use think\Request;
use think\Db;
use think\Session;
class PreController extends Controller
{
	/**
        洗澡预约信息列表
    **/
    public function wash()
    {
    	// $userList = Db::name('user')
     //    ->alias('u')
     //    ->join('pets_user_integral i','i.uid = u.id')
     //    ->join('pets_user_money m','m.uid = u.id')
     //    ->order('id desc')
     //    ->select();
     //    
        $preList = db('per')
                    ->where('service_type','1')
                    ->order('per_time asc')
                    ->select();
        $this->assign('preList',$preList);
        return $this->fetch();
    }


    /**
        寄样预约信息列表
    **/
    public function foster()
    {
        $fosterList = db('per')
                    ->where('service_type','2')
                    ->order('per_time asc')
                    ->select();
        $this->assign('fosterList',$fosterList);
        return $this->fetch();
    }



}